package com.example.riskmanage.service.impl;


import com.example.riskmanage.bean.MainMenu;
import com.example.riskmanage.dao.MenuDao;
import com.example.riskmanage.service.MenuManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuManagerImpl implements MenuManager {

    @Autowired
    MenuDao menuDao;

    @Override
    public List<MainMenu> MenuService() {
        return menuDao.findAll();
    }
}
